class Animal:
    name = "animal"
    def shout(self):
        print("shout")
animal= Animal()
print(animal.name)
animal.shout()
class Dog():
    name = "dog"
    def __init__(self):
        self.age=10
    def eat(self):
        # self.age=10
        print("yanggan eat")
dog=Dog()
print(dog.name)
dog.eat()
dog1=Dog()
print(dog1.name)
dog1.name=("dddddd1")
print(dog1.name)
print(Dog.name)
Dog.name="dd2"
print(dog1.name)
print(Dog.name)
dog2=Dog()
print(dog2.name)
print(dog2.age)